package me.yiyou.meihua.data.xinghuo

/**
 * 回复, 一次性回复
 */
data class XHResponse(
    val choices: List<XHChoice>,
    val code: Int,
    val message: String,
    val sid: String,
    val status: String,
    val usage: XHUsage
) {
    fun isSuccess() = code == 0
}

data class XHChoice(
    val index: Int,
    val message: XHMessage
)

data class XHUsage(
    val completion_tokens: Int,
    val prompt_tokens: Int,
    val search_prompt_tokens: Int,
    val total_tokens: Int
)

data class XHMessage(
    val content: String,
    val reasoning_content: String,
    val role: String
)